package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author
 */
public class Integral implements Serializable {
    private String inno;

    private String uno;

    private String erno;

    private String onlineDuration;

    private String addIntegral;

    private String nos;

    private static final long serialVersionUID = 1L;

    public String getInno() {
        return inno;
    }

    public void setInno(String inno) {
        this.inno = inno;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getCrno() {
        return erno;
    }

    public void setCrno(String erno) {
        this.erno = erno;
    }

    public String getOnlineDuration() {
        return onlineDuration;
    }

    public void setOnlineDuration(String onlineDuration) {
        this.onlineDuration = onlineDuration;
    }

    public String getAddIntegral() {
        return addIntegral;
    }

    public void setAddIntegral(String addIntegral) {
        this.addIntegral = addIntegral;
    }

    public String getNos() {
        return nos;
    }

    public void setNos(String nos) {
        this.nos = nos;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Integral other = (Integral) that;
        return (this.getInno() == null ? other.getInno() == null : this.getInno().equals(other.getInno()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getCrno() == null ? other.getCrno() == null : this.getCrno().equals(other.getCrno()))
            && (this.getOnlineDuration() == null ? other.getOnlineDuration() == null : this.getOnlineDuration().equals(other.getOnlineDuration()))
            && (this.getAddIntegral() == null ? other.getAddIntegral() == null : this.getAddIntegral().equals(other.getAddIntegral()))
            && (this.getNos() == null ? other.getNos() == null : this.getNos().equals(other.getNos()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInno() == null) ? 0 : getInno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getCrno() == null) ? 0 : getCrno().hashCode());
        result = prime * result + ((getOnlineDuration() == null) ? 0 : getOnlineDuration().hashCode());
        result = prime * result + ((getAddIntegral() == null) ? 0 : getAddIntegral().hashCode());
        result = prime * result + ((getNos() == null) ? 0 : getNos().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", inno=").append(inno);
        sb.append(", uno=").append(uno);
        sb.append(", erno=").append(erno);
        sb.append(", onlineDuration=").append(onlineDuration);
        sb.append(", addIntegral=").append(addIntegral);
        sb.append(", nos=").append(nos);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
